The x coordinate of the current room’s right edge - the line where the room ends, one past the last pixel inside it.
room_right() -> intint
Gives back the x position of the right edge of the room you are in. It is the partner of room_left, and everything that page says about the origin applies here too.
The right edge is the line where the room stops. It is one past the last pixel that is inside the room, in the same way that a ruler's 10 mark is where the tenth centimetre ends, not where it starts. It is always exactly room_left() + room_width().
Write room_right() - 16 rather than working the number out yourself. It says "16 pixels in from the right edge", and it is right in every project. The room counts from its top-left corner, so in a project that follows the current rule room_right() is the same number as room_width().
x = room_right() - 16;Puts this instance 16 pixels in from the right edge of the room.
Worked out as the left edge plus the width, so it can never disagree with room_left or room_width.